<%= javascript_include_tag('user/edit.js') %>

<table class="mainpage_content_table" border="0" cellpadding="0" cellspacing="0" style="width:100%;height:100%;">
  <tr>
    <td class="mainpage_content_head">Account</td>
  </tr>
  <tr>
    <td style="padding-left:20px;">
      <div id="content_pro" style="width:100%;height:100%;">

        <%= page_label(:label, :profile_is_edited) %>

          <%= form_tag(:action=>"update") %>
          <%= hidden_field :user, :id %>
          <table id="form_table_1" border="0" cellspacing="10" style="margin-left:20px;">
            <tr>
              <td><%= page_label(:label, :user_name) %></td>
              <td><%= text_field :user, :user_name, :style => "width:300px;ime-mode:active;", :maxlength => "255" %></td>
              <td><%= image_tag("/images/spacer.gif", :width=>"100px", :height=>"1px") %></td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :user_name) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :password) %></td>
              <td><%= password_field :user, :password, :style => "width:300px;ime-mode:disabled;", :maxlength => "255" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :confirm_password) %></td>
              <td><%= password_field :user, :password_confirmation, :style => "width:300px;ime-mode:disabled;", :maxlength => "255" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :password) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :name) %></td>
              <td><%= text_field :user, :name, :style => "width:300px;ime-mode:active;", :maxlength => "40", :maxlength => "255" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :name) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :sex) %></td>
              <td>
                <%= radio_button :user, :sex, "1" %><%= page_label(:label, :sex_1) %>
                <%= radio_button :user, :sex, "2" %><%= page_label(:label, :sex_2) %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :sex) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :birthday) %></td>
              <td>
                <%= ymd_select_field :user, :birthday, :style => "width:80px;ime-mode:disabled;", :maxlength => "10" %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :birthday) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :company_name) %></td>
              <td><%= text_field :user, :company_name, :style => "width:300px;ime-mode:active;", :maxlength => "60" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :company_name) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :section_name) %></td>
              <td><%= text_field :user, :section_name, :style => "width:300px;ime-mode:active;", :maxlength => "60" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :section_name) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :zip) %></td>
              <td><%= text_field :user, :zip, :style => "width:80px;ime-mode:disable;", :maxlength => "8" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :zip) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :prefecture) %></td>
              <td><%= text_field :user, :prefecture, :style => "width:100px;ime-mode:active;", :maxlength => "10" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :prefecture) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :address1) %></td>
              <td><%= text_field :user, :address1, :style => "width:300px;ime-mode:active;", :maxlength => "100" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :address1) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :address2) %></td>
              <td><%= text_field :user, :address2, :style => "width:300px;ime-mode:active;", :maxlength => "100" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :address2) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :tel) %></td>
              <td><%= text_field :user, :tel, :style => "width:100px;ime-mode:disabled;", :maxlength => "14" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :tel) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :fax) %></td>
              <td><%= text_field :user, :fax, :style => "width:100px;ime-mode:disabled;", :maxlength => "14" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :fax) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :skype_id) %></td>
              <td><%= text_field :user, :skype_id, :style => "width:300px;ime-mode:disabled;", :maxlength => "255" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><%= error_message_on(:user, :skype_id) %></td>
            </tr>
            <tr>
              <td colspan="2" style="text-align:right;"><%= submit_tag(app_localized_message(:label, :edit_user)) %></td>
              <td></td>
            </tr>
          </table>
        </form>
      </div>
    </td>
  </tr>
</table>